$conf = ([string] (get-content install.cfg))
if ($conf -eq "") {
	$name = read-host "Please enter the name of the service"
	set-content .\install.cfg $name
	write-host "OK, that name has been stored in install.cfg - If you need to change it, please change that file. Press any key to acknowledge."
	$garbage = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
} else {
	$name = $conf
}

net stop $name
C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe /uninstall "AppendCustomisationService.exe"
$garbage = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
